 var dynamicLoad = function(rps, uri) {
        var data = routeMap[uri]
          , _routeConfig = {
            templateUrl: rps.tpl(data.template, !0),
            controller: data.ctrlName
        };
        return setting.opt || (_routeConfig.resolve = {
            load: ["$q", "$rootScope", function($q, $rootScope) {
                var defer = $q.defer();
                return require([data.ctrlPath], function(_data) {
                    console.log(data.ctrlPath),
                    defer.resolve(),
                    $rootScope.$apply()
                }),
                defer.promise
            }
            ]
        }),
        _routeConfig
    }
    ;
    app.config(["$routeProvider", "ResourcePathServiceProvider", function($routeProvider, rpsProvider) {
        for (var uri in routeMap)
            $routeProvider.when(uri, dynamicLoad(rpsProvider.service, uri));
        $routeProvider.otherwise({
            redirectTo: route["default"]
        })
    }
    ])